### Project 6 Water Flow Light **1. Description** This simple water flow light project enables to help you learn electronic packaging. In this project, we will control LEDs to change the color in a specified speed via a Arduino board. **2. Wiring Diagram** ![](media/A74.png) **3. Test Code** A water flow light consists of a stream of LED lighting from left to right. 1. Drag the two basic code blocks. ![](media/A75.png) 2. Set the pin mode to “output”. ![](media/A76.png) 3. Drag the following blocks from "LED" part and set the IO15 pin to LOW, the IO12 pin to HIGH. Then set the delay time to 0.2s. ![](media/A77.png) 4. Drag the following blocks from "LED" part and set the IO12 pin to LOW, the IO13 pin to HIGH. Then set the delay time to 0.2s. ![](media/A78.png) 5. Drag the following blocks from "LED" part and set the IO13 pin to LOW, the IO14 pin to HIGH. Then set the delay time to 0.2s. ![](media/A79.png) 6. Drag the following blocks from "LED" part and set the IO14 pin to LOW, the IO15 pin to HIGH. Then set the delay time to 0.2s. ![](media/A80.png) **Complete Code:** ![](media/A81.png) **4. Test Result** After uploading code and powering on, the LEDs light up from left to right.